<?php
$ret = array();
foreach ($_SERVER as $k =>$v){
	if (FALSE===strpos($k, 'BAE') && FALSE!==strpos($k, 'HTTP')) {
		$ret[$k] = $v;
	}
}
var_dump($ret);
?>